package com.shuyihui.databindinglib;

import android.app.Application;
import android.content.Context;

import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;


/**
 * 页面的网络请求，判断方法继承该类写入子类中
 */
public abstract class BaseViewModel extends AndroidViewModel {
    public final String TAG = this.getClass().getSimpleName();
    protected Context mContext;

    public BaseViewModel(@NonNull Application application) {
        super(application);
        mContext = application;
    }

    @Override
    protected void onCleared() {
        super.onCleared();

    }


}
